const { rollup } = require("rollup");
const rollup_dev = require("./config.compile.dev");

async function compile() {
    return rollup(rollup_dev).then(bundle => {
        bundle.write(rollup_dev.output[0]);
    }, err => {
        console.log(err);
    });
};

module.exports = compile;
